<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>Person JSP</title>
</head>
<body>
<jsp:useBean
id="person"
class="bean.Person"
    scope="page">
    <ul>
        <li>姓名:
            <jsp:getProperty name="person" property="name"/>
        </li>
        <li>
            性别:
            <jsp:getProperty name="person" property="sex"/>
        </li>
        <li>
            年龄:
            <jsp:getProperty name="person" property="age"/>
        </li>
        <li>
            已婚:
            <jsp:getProperty name="person" property="married"/>
        </li>
    </ul>
</jsp:useBean>
</body>
</html>